using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Collections.Generic;
public partial class pages_category : System.Web.UI.Page
{
    BookDAO daoBook = new BookDAO();
    protected void Page_Load(object sender, EventArgs e)
    {
        int cateid=int.Parse(Request["cate_id"]);
        IList<Book> books = daoBook.GetBookByCategory(cateid);
        if (books.Count > 0)
        {
            rptContent.DataSource = books;
            rptContent.DataBind();
        }
    }
}
